<template>
  <h1>El-容器组件</h1>
  <div class="common-layout">
    <el-container>
      <!--侧边栏-->
      <el-aside width="300px">
        <el-menu>
          <el-menu-item index="1">用户管理</el-menu-item>
          <el-menu-item index="2">车辆管理</el-menu-item>
          <el-menu-item index="3">围栏管理</el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header>
          <h1 style="background-color: #0aa1ed;color: white;">智慧车辆运营系统-IVOS</h1>
        </el-header>
        <el-main>
          <el-table :data="arr">
            <el-table-column type="index" label="编号" align="center" width="80"></el-table-column>
            <el-table-column prop="brand" label="品牌" align="center"></el-table-column>
            <el-table-column prop="model" label="型号" align="center"></el-table-column>
            <el-table-column prop="license" label="车牌号" align="center"></el-table-column>
            <el-table-column prop="color" label="颜色" align="center"></el-table-column>
            <el-table-column prop="km" label="里程数" align="center"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import {ref} from "vue";

const arr = ref([
  {brand: '宝马', model: 'X 5', license: '川A 12341', color: '白色', km: '10000'},
  {brand: '奔驰', model: 'E 300', license: '川A 12342', color: '白色', km: '10000'},
  {brand: '特斯拉', model: 'Model 3', license: '川A 12343', color: '黑色', km: '10000'},
  {brand: '别克', model: '威朗', license: '川A 12344', color: '灰色', km: '10000'},
  {brand: '福特', model: '锐界', license: '川A 12345', color: '黑色', km: '100'}
])
</script>

<style scoped>

</style>